﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BOSS.Domain.Security
{
    /// <summary>
    /// 权限许可
    /// </summary>
    [Serializable]
    public enum PermissionType
    {
        /// <summary>
        /// 默认（拒绝）
        /// </summary>
        [Description("默认拒绝")]
        DEFAULT_DENY = 0,

        /// <summary>
        /// 默认（允许）
        /// </summary>
        [Description("默认允许")]
        DEFAULT_ALLOW = 1,

        /// <summary>
        /// 继承上级许可
        /// </summary>
        [Description("继承")]
        INHERIT = 2,

        /// <summary>
        /// 允许
        /// </summary>
        [Description("允许")]
        ALLOW = 3,

        /// <summary>
        /// 拒绝
        /// </summary>
        [Description("拒绝")]
        DENY = 4,

        /// <summary>
        /// 强制允许，忽略除 ENFORCE_DENY 之外的所有其他许可
        /// </summary>
        [Description("强制允许")]
        ENFORCE_ALLOW = 5,

        /// <summary>
        /// 强制拒绝，忽略所有的其他许可
        /// </summary>
        [Description("强制拒绝")]
        ENFORCE_DENY = 6,
    }
}
